
import api from '../utils/request'
// 用户登录、修改
export const login = (method: any, params: any, data: any) => api({
  url: '/auth/login',
  method,
  params,
  data
})
// 用户新增
export const addUser = (method: any, params: any, data: any) => api({
  url: '/auth/add_user',
  method,
  params,
  data
})
// 全部用户渲染（后台管理）
export const showUser = (method: any, params: any, data: any) => api({
  url: '/auth/show_user',
  method,
  params,
  data
})
// 商品关键字、详情页
export const show = (method: any, params: any, data: any) => api({
  url: '/shop/show',
  method,
  params,
  data
})
// 商品分类、新增、修改
export const shopType = (method: any, params: any, data: any) => api({
  url: '/shop/shop_type',
  method,
  params,
  data
})
// 商品查询
export const shopSeach = (method: any, params: any, data: any) => api({
  url: '/shop/shop_seach',
  method,
  params,
  data
})
// 退出登录
export const logout = (method: any, params: any, data: any) => api({
  url: '/auth/logout',
  method,
  params,
  data
})
// 添加商品到购物车、清除购物车
export const userAddShop = (method: any, params: any, data: any) => api({
  url: '/auth/user_add_shop',
  method,
  params,
  data
})
// 购物车渲染
export const shopCarView = (method: any, params: any, data: any) => api({
  url: '/auth/shop_car_view',
  method,
  params,
  data
})
// 轮播图
export const shopSwiper = (method: any, params: any, data: any) => api({
  url: '/shop/shop_swiper',
  method,
  params,
  data
})